<!doctype html>



  


<html class="theme-next mist use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>






<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />




  
  
  
  

  
    
    
  

  

  

  

  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.1" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="电脑,硬件," />








  <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?v=5.1.1" />






<meta name="description" content="常话说的好，高富玩表，土豪玩车，屌丝玩电脑。作为一名屌丝中的战斗机，那电脑必须玩得溜。其实想买电脑的原因是现在用的笔记本已经5年了，配置跟不上，卡得老火，最近想学习新东西提升自己，但是现在的电脑极大影响了学习效率（都是借口）。而最近分期买了显示器、分期买了红蜘蛛，就是没有换电脑，所以考虑配个台式电脑了。   我要配电脑">
<meta name="keywords" content="电脑,硬件">
<meta property="og:type" content="article">
<meta property="og:title" content="我要配电脑，我要学习！！！">
<meta property="og:url" content="http://yoursite.com/2017/05/07/sh_computer/index.html">
<meta property="og:site_name" content="杂七杂八">
<meta property="og:description" content="常话说的好，高富玩表，土豪玩车，屌丝玩电脑。作为一名屌丝中的战斗机，那电脑必须玩得溜。其实想买电脑的原因是现在用的笔记本已经5年了，配置跟不上，卡得老火，最近想学习新东西提升自己，但是现在的电脑极大影响了学习效率（都是借口）。而最近分期买了显示器、分期买了红蜘蛛，就是没有换电脑，所以考虑配个台式电脑了。   我要配电脑">
<meta property="og:image" content="http://yoursite.com/2017/05/07/sh_computer/timg.png">
<meta property="og:image" content="http://yoursite.com/2017/05/07/sh_computer/2017-05-07-12-30-05.jpg">
<meta property="og:image" content="http://yoursite.com/2017/05/07/sh_computer/2017-05-07-12-36-36.jpg">
<meta property="og:image" content="http://yoursite.com/2017/05/07/sh_computer/2017-05-07-12-37-39.jpg">
<meta property="og:image" content="http://yoursite.com/2017/05/07/sh_computer/2017-05-07-12-32-31.jpg">
<meta property="og:image" content="http://yoursite.com/2017/05/07/sh_computer/2017-05-07-12-35-07.jpg">
<meta property="og:image" content="http://yoursite.com/2017/05/07/sh_computer/2017-05-07-12-39-55.jpg">
<meta property="og:image" content="http://yoursite.com/2017/05/07/sh_computer/2017-05-07-12-31-10.jpg">
<meta property="og:image" content="http://yoursite.com/2017/05/07/sh_computer/2017-05-07-12-40-44.jpg">
<meta property="og:image" content="http://yoursite.com/2017/05/07/sh_computer/2017-05-07-12-35-55.jpg">
<meta property="og:image" content="http://yoursite.com/2017/05/07/sh_computer/2017-05-07-12-34-00.jpg">
<meta property="og:image" content="http://yoursite.com/2017/05/07/sh_computer/timg1.png">
<meta property="og:updated_time" content="2017-06-26T23:48:08.063Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="我要配电脑，我要学习！！！">
<meta name="twitter:description" content="常话说的好，高富玩表，土豪玩车，屌丝玩电脑。作为一名屌丝中的战斗机，那电脑必须玩得溜。其实想买电脑的原因是现在用的笔记本已经5年了，配置跟不上，卡得老火，最近想学习新东西提升自己，但是现在的电脑极大影响了学习效率（都是借口）。而最近分期买了显示器、分期买了红蜘蛛，就是没有换电脑，所以考虑配个台式电脑了。   我要配电脑">
<meta name="twitter:image" content="http://yoursite.com/2017/05/07/sh_computer/timg.png">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Mist',
    sidebar: {"position":"left","display":"post","offset":12,"offset_float":0,"b2t":false,"scrollpercent":false},
    fancybox: true,
    motion: true,
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://yoursite.com/2017/05/07/sh_computer/"/>





  <title>我要配电脑，我要学习！！！ | 杂七杂八</title>
</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  











  <div style="display: none;">
    <script src="//s95.cnzz.com/z_stat.php?id=1261868868&web_id=1261868868" language="JavaScript"></script>
  </div>






  
  
    
  

  <div class="container sidebar-position-left page-post-detail ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">杂七杂八</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle">AoloMode 的博客</p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      

      
        <li class="menu-item menu-item-search">
          
            <a href="javascript:;" class="popup-trigger">
          
            
              <i class="menu-item-icon fa fa-search fa-fw"></i> <br />
            
            搜索
          </a>
        </li>
      
    </ul>
  

  
    <div class="site-search">
      
  <div class="popup search-popup local-search-popup">
  <div class="local-search-header clearfix">
    <span class="search-icon">
      <i class="fa fa-search"></i>
    </span>
    <span class="popup-btn-close">
      <i class="fa fa-times-circle"></i>
    </span>
    <div class="local-search-input-wrapper">
      <input autocomplete="off"
             placeholder="搜索..." spellcheck="false"
             type="text" id="local-search-input">
    </div>
  </div>
  <div id="local-search-result"></div>
</div>



    </div>
  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/2017/05/07/sh_computer/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="韦超">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="杂七杂八">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">我要配电脑，我要学习！！！</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2017-05-07T13:13:56+08:00">
                2017-05-07
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/生活/" itemprop="url" rel="index">
                    <span itemprop="name">生活</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          
            <span class="post-meta-divider">|</span>
            <span class="page-pv"><i class="fa fa-file-o"></i>
            <span class="busuanzi-value" id="busuanzi_value_page_pv" ></span>
            </span>
          

          

          

        </div>
      </header>
    

    <div class="post-body" itemprop="articleBody">

      
      

      
        <hr>
<p>常话说的好，高富玩表，土豪玩车，屌丝玩电脑。作为一名屌丝中的战斗机，那电脑必须玩得溜。其实想买电脑的原因是现在用的笔记本已经5年了，配置跟不上，卡得老火，最近想学习新东西提升自己，但是现在的电脑极大影响了学习效率（都是借口）。而最近分期买了显示器、分期买了红蜘蛛，就是没有换电脑，所以考虑配个台式电脑了。</p>
<hr>
<p><img src="/2017/05/07/sh_computer/timg.png" alt=""></p>
<p class="image-caption">我要配电脑</p>

<a id="more"></a>
<div class="note info"><h2 id="呵呵哒"><a href="#呵呵哒" class="headerlink" title="呵呵哒"></a>呵呵哒</h2><p>后来配了一台电脑：<a href="http://aolomode.oschina.io/2017/06/12/sh_computer_2/" target="_blank" rel="external">点击查看详情</a></p>
</div> 
<h1 id="一、工作场景要求"><a href="#一、工作场景要求" class="headerlink" title="一、工作场景要求"></a>一、工作场景要求</h1><p>平时生活中对电脑的各种需求场景较多，对电脑的配置要求较高，以下是使用场景：</p>
<ol>
<li>同时打开浏览器3~4个，页面加起来一般共40~60个，对内存和cpu要求很高。</li>
<li>满足第1种场景的同时也会打开Photoshop、Lightroom、Illustrator，，对内存、cpu和显卡要求很高。</li>
<li>除此之外还可能同时打开一些软件，例如QQ，文编编辑器Notepad++和Editplus，Markdown编辑器MarkEditor，还有git工具等等。</li>
<li>另外还有一些制作视频和渲染方面的小爱好，对显卡、内存和cpu要求较高。</li>
</ol>
<div class="note info"><p><strong>结论：</strong><br>同时打开多任务需多线程处理cpu，设计要求高配显卡、同时打开和处理大型文件需要大内存。</p>
</div> 
<h1 id="二、软件性能要求"><a href="#二、软件性能要求" class="headerlink" title="二、软件性能要求"></a>二、软件性能要求</h1><h2 id="1、UI设计"><a href="#1、UI设计" class="headerlink" title="1、UI设计"></a>1、UI设计</h2><ul>
<li>Photoshop CC 2015：平面设计、界面设计。</li>
<li>Illustrator CC 2015：图标设计，界面设计，插画设计。</li>
<li>Aftereffects CC 2015：交互动效设计。</li>
<li>CorelDRAW X7：平面设计、界面设计，主要是采集cdr格式素材用到，以AI为主，少用。</li>
<li>Axure：界面设计。</li>
</ul>
<h2 id="2、摄影后期"><a href="#2、摄影后期" class="headerlink" title="2、摄影后期"></a>2、摄影后期</h2><ul>
<li>Photoshop CC 2015：添加创造性后期、各类磨皮插件、灯光插件，添加边框、logo、icon、文字描述等用到。</li>
<li>Lightroom 6.0：照片管理工具，摄影师后期工具，主要用在照片思维批量管理、同步处理照片的时候用。</li>
<li>Camera Raw 9.6：简版的Lightroom，和PS协同使用，需要后期照片数量不多的时候偶尔用到。</li>
</ul>
<h2 id="3、视频后期"><a href="#3、视频后期" class="headerlink" title="3、视频后期"></a>3、视频后期</h2><ul>
<li>Aftereffects CC 2015：视频后期特效，片头和片尾等。</li>
<li>PremierePro：视频剪辑，制作生活短视频，添加转场特效、字幕等。</li>
</ul>
<h2 id="4、其它业余"><a href="#4、其它业余" class="headerlink" title="4、其它业余"></a>4、其它业余</h2><ul>
<li>3Dmax：模型渲染，需要渲染千万级的面，对显卡要求极高，一般用丽台显卡。</li>
<li>CAD：制图用到，有时候需要制作建筑图纸，有时候也会用在UI设计方面，对显卡有一定要求。</li>
<li>Audition CC：处理音频，音频剪辑、混合等。</li>
<li>Painter 2015：结合画板绘画。</li>
<li>PaintToolSAI 1.2.2：结合画板绘画。</li>
</ul>
<h1 id="三、电脑硬件配置"><a href="#三、电脑硬件配置" class="headerlink" title="三、电脑硬件配置"></a>三、电脑硬件配置</h1><h2 id="1、CPU"><a href="#1、CPU" class="headerlink" title="1、CPU"></a>1、CPU</h2><p>i7较为浪费，游戏处理器个人需求不大，附加的英特尔核心显卡显卡对我来来说很鸡肋。综合考虑后，选择V3 e5至强型号的服务器处理器，接近i7性能，比i7少核心显卡，比i7少500元，正合我意。<br>当前价格：￥2249<br>618价格：￥2149 ↓<br><img src="/2017/05/07/sh_computer/2017-05-07-12-30-05.jpg" alt=""></p>
<h2 id="2、显卡"><a href="#2、显卡" class="headerlink" title="2、显卡"></a>2、显卡</h2><p>综合考虑，暂定丽台专业入门级的K2200型号，入门专业级的K1200作为备胎。<br>K2200价格：￥3259<br>K1200价格：￥2779<br><img src="/2017/05/07/sh_computer/2017-05-07-12-36-36.jpg" alt=""><br><img src="/2017/05/07/sh_computer/2017-05-07-12-37-39.jpg" alt=""></p>
<h2 id="3、内存"><a href="#3、内存" class="headerlink" title="3、内存"></a>3、内存</h2><p>按自己对内存的需求12G刚好，选择两条美商海盗船8G内存。<br>价格：￥949<br>618价格：￥919 ↓<br><img src="/2017/05/07/sh_computer/2017-05-07-12-32-31.jpg" alt=""></p>
<h2 id="4、硬盘"><a href="#4、硬盘" class="headerlink" title="4、硬盘"></a>4、硬盘</h2><p>打算西部数据1T机械 + 三星（Samsung）750EVO 250G250G SSD混合，由于资金紧缺，当前先考虑机械硬盘，后期如有需求再购入SSD。<br>机械硬盘：￥329     618价格：￥289<br>SSD：￥599<br><img src="/2017/05/07/sh_computer/2017-05-07-12-35-07.jpg" alt=""><br><img src="/2017/05/07/sh_computer/2017-05-07-12-39-55.jpg" alt=""></p>
<h2 id="5、主板"><a href="#5、主板" class="headerlink" title="5、主板"></a>5、主板</h2><p>华硕（ASUS）PRIME Z270-P 主板（Intel Z270/LGA 1151）<br>价格：￥1099<br><img src="/2017/05/07/sh_computer/2017-05-07-12-31-10.jpg" alt=""></p>
<h2 id="6、电源"><a href="#6、电源" class="headerlink" title="6、电源"></a>6、电源</h2><p>美商海盗船(USCorsair)额定550W VS550 电源<br>价格：￥299<br>618价格：￥339 ↑<br><img src="/2017/05/07/sh_computer/2017-05-07-12-40-44.jpg" alt=""></p>
<h2 id="7、CPU散热器"><a href="#7、CPU散热器" class="headerlink" title="7、CPU散热器"></a>7、CPU散热器</h2><p>一体水冷：ID-COOLING Frostflow 120 一体式水冷CPU散热器 全平台单排红黑风扇版。<br>价格：￥199<br>618价格：￥159<br><img src="/2017/05/07/sh_computer/2017-05-07-12-35-55.jpg" alt=""></p>
<h2 id="8、机箱"><a href="#8、机箱" class="headerlink" title="8、机箱"></a>8、机箱</h2><p>大机箱，安钛克（Antec）GX900 。<br>价格：￥249<br><img src="/2017/05/07/sh_computer/2017-05-07-12-34-00.jpg" alt=""></p>
<div class="note danger"><h2 id="总价"><a href="#总价" class="headerlink" title="总价"></a>总价</h2><p>一共。。。？？，，p;;’;xvxvxv………….,<br>算了，不买了。</p>
</div> 
<h1 id="四、最后来个总结"><a href="#四、最后来个总结" class="headerlink" title="四、最后来个总结"></a>四、最后来个总结</h1><p>经过最后的分析得出，价格是当前最大的矛盾，本人还没经过深思熟虑就决定，不买了。。。。。。<br><img src="/2017/05/07/sh_computer/timg1.png" alt=""></p>
<p class="image-caption">就是逗你玩</p>
      
    </div>

    <div>
      
        

      
    </div>

    <div>
      
        

      
    </div>

    <div>
      
        

      
    </div>

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/电脑/" rel="tag"># 电脑</a>
          
            <a href="/tags/硬件/" rel="tag"># 硬件</a>
          
        </div>
      

      
        
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2017/05/07/txf_q/" rel="next" title="关于原生APP资讯产品是否需要保留社区的问题">
                <i class="fa fa-chevron-left"></i> 关于原生APP资讯产品是否需要保留社区的问题
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2017/05/05/ps_syjj/" rel="prev" title="摄影后期，用Photoshop动作为照片批量添加边框">
                摄影后期，用Photoshop动作为照片批量添加边框 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          
  <div class="comments" id="comments">
    
  </div>


        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap" >
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="/images/avatar.gif"
               alt="韦超" />
          <p class="site-author-name" itemprop="name">韦超</p>
           
              <p class="site-description motion-element" itemprop="description">工作、学习、生活中的点滴！</p>
          
        </div>
        <nav class="site-state motion-element">

          
            <div class="site-state-item site-state-posts">
              <a href="/archives">
                <span class="site-state-item-count">19</span>
                <span class="site-state-item-name">日志</span>
              </a>
            </div>
          

          
            
            
            <div class="site-state-item site-state-categories">
              <a href="/categories/index.html">
                <span class="site-state-item-count">5</span>
                <span class="site-state-item-name">分类</span>
              </a>
            </div>
          

          
            
            
            <div class="site-state-item site-state-tags">
              <a href="/tags/index.html">
                <span class="site-state-item-count">32</span>
                <span class="site-state-item-name">标签</span>
              </a>
            </div>
          

        </nav>

        

        <div class="links-of-author motion-element">
          
        </div>

        
        

        
        

        


      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#呵呵哒"><span class="nav-text">呵呵哒</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#一、工作场景要求"><span class="nav-text">一、工作场景要求</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#二、软件性能要求"><span class="nav-text">二、软件性能要求</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#1、UI设计"><span class="nav-text">1、UI设计</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2、摄影后期"><span class="nav-text">2、摄影后期</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#3、视频后期"><span class="nav-text">3、视频后期</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#4、其它业余"><span class="nav-text">4、其它业余</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#三、电脑硬件配置"><span class="nav-text">三、电脑硬件配置</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#1、CPU"><span class="nav-text">1、CPU</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2、显卡"><span class="nav-text">2、显卡</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#3、内存"><span class="nav-text">3、内存</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#4、硬盘"><span class="nav-text">4、硬盘</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#5、主板"><span class="nav-text">5、主板</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#6、电源"><span class="nav-text">6、电源</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#7、CPU散热器"><span class="nav-text">7、CPU散热器</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#8、机箱"><span class="nav-text">8、机箱</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#总价"><span class="nav-text">总价</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#四、最后来个总结"><span class="nav-text">四、最后来个总结</span></a></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy; 
  <span itemprop="copyrightYear">2017</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">韦超</span>
</div>


<div class="powered-by">
  由 <a class="theme-link" href="https://hexo.io">Hexo</a> 强力驱动
</div>

<div class="theme-info">
  主题 -
  <a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
    NexT.Mist
  </a>
</div>


        
<div class="busuanzi-count">
  <script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>

  
    <span class="site-uv">
      <i class="fa fa-user"></i>
      <span class="busuanzi-value" id="busuanzi_value_site_uv"></span>
      
    </span>
  

  
    <span class="site-pv">
      <i class="fa fa-eye"></i>
      <span class="busuanzi-value" id="busuanzi_value_site_pv"></span>
      
    </span>
  
</div>


        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.1"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.1"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.1"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.1"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.1"></script>



  


  




	





  





  





  






  

  <script type="text/javascript">
    // Popup Window;
    var isfetched = false;
    var isXml = true;
    // Search DB path;
    var search_path = "search.xml";
    if (search_path.length === 0) {
      search_path = "search.xml";
    } else if (search_path.endsWith("json")) {
      isXml = false;
    }
    var path = "/" + search_path;
    // monitor main search box;

    var onPopupClose = function (e) {
      $('.popup').hide();
      $('#local-search-input').val('');
      $('.search-result-list').remove();
      $('#no-result').remove();
      $(".local-search-pop-overlay").remove();
      $('body').css('overflow', '');
    }

    function proceedsearch() {
      $("body")
        .append('<div class="search-popup-overlay local-search-pop-overlay"></div>')
        .css('overflow', 'hidden');
      $('.search-popup-overlay').click(onPopupClose);
      $('.popup').toggle();
      var $localSearchInput = $('#local-search-input');
      $localSearchInput.attr("autocapitalize", "none");
      $localSearchInput.attr("autocorrect", "off");
      $localSearchInput.focus();
    }

    // search function;
    var searchFunc = function(path, search_id, content_id) {
      'use strict';

      // start loading animation
      $("body")
        .append('<div class="search-popup-overlay local-search-pop-overlay">' +
          '<div id="search-loading-icon">' +
          '<i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>' +
          '</div>' +
          '</div>')
        .css('overflow', 'hidden');
      $("#search-loading-icon").css('margin', '20% auto 0 auto').css('text-align', 'center');

      $.ajax({
        url: path,
        dataType: isXml ? "xml" : "json",
        async: true,
        success: function(res) {
          // get the contents from search data
          isfetched = true;
          $('.popup').detach().appendTo('.header-inner');
          var datas = isXml ? $("entry", res).map(function() {
            return {
              title: $("title", this).text(),
              content: $("content",this).text(),
              url: $("url" , this).text()
            };
          }).get() : res;
          var input = document.getElementById(search_id);
          var resultContent = document.getElementById(content_id);
          var inputEventFunction = function() {
            var searchText = input.value.trim().toLowerCase();
            var keywords = searchText.split(/[\s\-]+/);
            if (keywords.length > 1) {
              keywords.push(searchText);
            }
            var resultItems = [];
            if (searchText.length > 0) {
              // perform local searching
              datas.forEach(function(data) {
                var isMatch = false;
                var hitCount = 0;
                var searchTextCount = 0;
                var title = data.title.trim();
                var titleInLowerCase = title.toLowerCase();
                var content = data.content.trim().replace(/<[^>]+>/g,"");
                var contentInLowerCase = content.toLowerCase();
                var articleUrl = decodeURIComponent(data.url);
                var indexOfTitle = [];
                var indexOfContent = [];
                // only match articles with not empty titles
                if(title != '') {
                  keywords.forEach(function(keyword) {
                    function getIndexByWord(word, text, caseSensitive) {
                      var wordLen = word.length;
                      if (wordLen === 0) {
                        return [];
                      }
                      var startPosition = 0, position = [], index = [];
                      if (!caseSensitive) {
                        text = text.toLowerCase();
                        word = word.toLowerCase();
                      }
                      while ((position = text.indexOf(word, startPosition)) > -1) {
                        index.push({position: position, word: word});
                        startPosition = position + wordLen;
                      }
                      return index;
                    }

                    indexOfTitle = indexOfTitle.concat(getIndexByWord(keyword, titleInLowerCase, false));
                    indexOfContent = indexOfContent.concat(getIndexByWord(keyword, contentInLowerCase, false));
                  });
                  if (indexOfTitle.length > 0 || indexOfContent.length > 0) {
                    isMatch = true;
                    hitCount = indexOfTitle.length + indexOfContent.length;
                  }
                }

                // show search results

                if (isMatch) {
                  // sort index by position of keyword

                  [indexOfTitle, indexOfContent].forEach(function (index) {
                    index.sort(function (itemLeft, itemRight) {
                      if (itemRight.position !== itemLeft.position) {
                        return itemRight.position - itemLeft.position;
                      } else {
                        return itemLeft.word.length - itemRight.word.length;
                      }
                    });
                  });

                  // merge hits into slices

                  function mergeIntoSlice(text, start, end, index) {
                    var item = index[index.length - 1];
                    var position = item.position;
                    var word = item.word;
                    var hits = [];
                    var searchTextCountInSlice = 0;
                    while (position + word.length <= end && index.length != 0) {
                      if (word === searchText) {
                        searchTextCountInSlice++;
                      }
                      hits.push({position: position, length: word.length});
                      var wordEnd = position + word.length;

                      // move to next position of hit

                      index.pop();
                      while (index.length != 0) {
                        item = index[index.length - 1];
                        position = item.position;
                        word = item.word;
                        if (wordEnd > position) {
                          index.pop();
                        } else {
                          break;
                        }
                      }
                    }
                    searchTextCount += searchTextCountInSlice;
                    return {
                      hits: hits,
                      start: start,
                      end: end,
                      searchTextCount: searchTextCountInSlice
                    };
                  }

                  var slicesOfTitle = [];
                  if (indexOfTitle.length != 0) {
                    slicesOfTitle.push(mergeIntoSlice(title, 0, title.length, indexOfTitle));
                  }

                  var slicesOfContent = [];
                  while (indexOfContent.length != 0) {
                    var item = indexOfContent[indexOfContent.length - 1];
                    var position = item.position;
                    var word = item.word;
                    // cut out 100 characters
                    var start = position - 20;
                    var end = position + 80;
                    if(start < 0){
                      start = 0;
                    }
                    if (end < position + word.length) {
                      end = position + word.length;
                    }
                    if(end > content.length){
                      end = content.length;
                    }
                    slicesOfContent.push(mergeIntoSlice(content, start, end, indexOfContent));
                  }

                  // sort slices in content by search text's count and hits' count

                  slicesOfContent.sort(function (sliceLeft, sliceRight) {
                    if (sliceLeft.searchTextCount !== sliceRight.searchTextCount) {
                      return sliceRight.searchTextCount - sliceLeft.searchTextCount;
                    } else if (sliceLeft.hits.length !== sliceRight.hits.length) {
                      return sliceRight.hits.length - sliceLeft.hits.length;
                    } else {
                      return sliceLeft.start - sliceRight.start;
                    }
                  });

                  // select top N slices in content

                  var upperBound = parseInt('1');
                  if (upperBound >= 0) {
                    slicesOfContent = slicesOfContent.slice(0, upperBound);
                  }

                  // highlight title and content

                  function highlightKeyword(text, slice) {
                    var result = '';
                    var prevEnd = slice.start;
                    slice.hits.forEach(function (hit) {
                      result += text.substring(prevEnd, hit.position);
                      var end = hit.position + hit.length;
                      result += '<b class="search-keyword">' + text.substring(hit.position, end) + '</b>';
                      prevEnd = end;
                    });
                    result += text.substring(prevEnd, slice.end);
                    return result;
                  }

                  var resultItem = '';

                  if (slicesOfTitle.length != 0) {
                    resultItem += "<li><a href='" + articleUrl + "' class='search-result-title'>" + highlightKeyword(title, slicesOfTitle[0]) + "</a>";
                  } else {
                    resultItem += "<li><a href='" + articleUrl + "' class='search-result-title'>" + title + "</a>";
                  }

                  slicesOfContent.forEach(function (slice) {
                    resultItem += "<a href='" + articleUrl + "'>" +
                      "<p class=\"search-result\">" + highlightKeyword(content, slice) +
                      "...</p>" + "</a>";
                  });

                  resultItem += "</li>";
                  resultItems.push({
                    item: resultItem,
                    searchTextCount: searchTextCount,
                    hitCount: hitCount,
                    id: resultItems.length
                  });
                }
              })
            };
            if (keywords.length === 1 && keywords[0] === "") {
              resultContent.innerHTML = '<div id="no-result"><i class="fa fa-search fa-5x" /></div>'
            } else if (resultItems.length === 0) {
              resultContent.innerHTML = '<div id="no-result"><i class="fa fa-frown-o fa-5x" /></div>'
            } else {
              resultItems.sort(function (resultLeft, resultRight) {
                if (resultLeft.searchTextCount !== resultRight.searchTextCount) {
                  return resultRight.searchTextCount - resultLeft.searchTextCount;
                } else if (resultLeft.hitCount !== resultRight.hitCount) {
                  return resultRight.hitCount - resultLeft.hitCount;
                } else {
                  return resultRight.id - resultLeft.id;
                }
              });
              var searchResultList = '<ul class=\"search-result-list\">';
              resultItems.forEach(function (result) {
                searchResultList += result.item;
              })
              searchResultList += "</ul>";
              resultContent.innerHTML = searchResultList;
            }
          }

          if ('auto' === 'auto') {
            input.addEventListener('input', inputEventFunction);
          } else {
            $('.search-icon').click(inputEventFunction);
            input.addEventListener('keypress', function (event) {
              if (event.keyCode === 13) {
                inputEventFunction();
              }
            });
          }

          // remove loading animation
          $(".local-search-pop-overlay").remove();
          $('body').css('overflow', '');

          proceedsearch();
        }
      });
    }

    // handle and trigger popup window;
    $('.popup-trigger').click(function(e) {
      e.stopPropagation();
      if (isfetched === false) {
        searchFunc(path, 'local-search-input', 'local-search-result');
      } else {
        proceedsearch();
      };
    });

    $('.popup-btn-close').click(onPopupClose);
    $('.popup').click(function(e){
      e.stopPropagation();
    });
    $(document).on('keyup', function (event) {
      var shouldDismissSearchPopup = event.which === 27 &&
        $('.search-popup').is(':visible');
      if (shouldDismissSearchPopup) {
        onPopupClose();
      }
    });
  </script>





  

  

  

  

  

</body>
</html>
